﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using System.Reflection;

// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236

namespace Symmetry.Plugins.Osiris
{
    public sealed partial class FeedbackPanel : UserControl
    {
        public FeedbackPanel()
        {
            this.InitializeComponent();
            InitFeedbackPanel();
        }

        /// <summary>
        /// Create list of feedback items from our target feedback type and add to UI.
        /// </summary>
        private void InitFeedbackPanel()
        {
            //For each property in feedback create feedback item for UI list.
            Feedback fb = new Feedback();
            Type t = fb.GetType();
            var props = t.GetTypeInfo().DeclaredProperties;
            foreach (var prop in props)
            {
                
            }   
        }
    }

    public class FeedbackItem
    {
        public string Value { get; set; }
        public string Label { get; set; }
        public Type MyType { get; set; }
    }

    public class Feedback
    {
        public string UserEmail { get; set; }
        public string UserFeedback { get; set; }
    }

}
